﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SValuePic_Post_Window.aspx.cs" Inherits="CNVP.JShop.Web.Admin.CommonWindows.SValuePic_Post_Window" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../CSS/Edit.css" rel="stylesheet" type="text/css" />
    <script src="../../Scripts/jquery.js" type="text/javascript"></script>
    <script src="../../Scripts/Common.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="Content">
            <h3>
                选择上传的方式</h3>
                 <div class="division" style=" background-color:#CCC">
                     <asp:RadioButtonList ID="rblUpWay" runat="server" RepeatDirection="Horizontal" CssClass="RadioButtonListTable">
                        <asp:ListItem Value="1" Selected="True">上传图片</asp:ListItem>
                        <asp:ListItem Value="2">网络图片地址</asp:ListItem>
                     </asp:RadioButtonList>
                </div>
                <div class="division">
                    <div id="UpWay1" style="margin-left:10px;">
                        <h3>从您的电脑中挑选一张图片：</h3>
                        <p><asp:FileUpload ID="fileUp" runat="server" /></p>
                        </div>
                     <div id="UpWay2" style="display:none;margin-left:10px;">
                        <h3>从您的网络中挑选一张图片链接地址：</h3>
                         <asp:TextBox ID="txtWebUrl" runat="server" Width="300px"></asp:TextBox></div>
                      <div id="UpWay3" style="display:none;">
                        <div id="imgs"></div>
                      </div>
                      <br />
                </div>
                <div class="EditBtn"><asp:Button ID="btUp" runat="server" Text="提交" onclick="btUp_Click" /></div>
                <script type="text/javascript">
                    function UpWay() {
                        //隐藏模板tr
                        var rblUpWay = $("input[name='rblUpWay']:checked").val();
                        if (rblUpWay == "1") {
                            $("#UpWay1").css("display", "");
                            $("#UpWay2").css("display", "none");
                            $("#UpWay3").css("display", "none");
                        }
                        else if (rblUpWay == "2") {
                            $("#UpWay1").css("display", "none");
                            $("#UpWay2").css("display", "");
                            $("#UpWay3").css("display", "none");
                        }
                    }
                    </script>
        </div>
    </form>
</body>
</html>
